using System.ServiceModel;
using MoneyTracking.Common;

namespace MoneyTracking.Service
{
    [ServiceContract]
    public interface IMoneyService
    {
        [OperationContract]
        ServiceResponse AddExpense(Expense expense);
        [OperationContract]
        ServiceResponse UpdateExpense(Expense expense);
        [OperationContract]
        ServiceResponse DeleteExpense(Expense expense);
        [OperationContract]
        ServiceResponse GetExpenseByID(int expenseId);
        [OperationContract]
        ServiceResponse AddCategory(Category category);
        [OperationContract]
        ServiceResponse UpdateCategory(Category category);
        [OperationContract]
        ServiceResponse DeleteCategory(Category category);
        [OperationContract]
        ServiceResponse GetCategoryByID(int categoryId);

        [OperationContract]
        ServiceResponse GetAllExpense();
    }
}